package com.helios.bean;

import com.google.gson.Gson;

public class User {

    private int id;
    
    private String username;
    
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
    
    public void onCreate() {
        System.out.println(this + ",Create");
    }
    
    public void onDestroy() {
        System.out.println(this + ",Destroy");
    }
    
    @Override
    public String toString() {
        return new Gson().toJson(this);
    }
}
